//===============================================================================
// Microsoft patterns & practices Enterprise Library Contribution
// Query Application Block
//===============================================================================

using System.ComponentModel;
using Microsoft.Practices.EnterpriseLibrary.Configuration.Design;
using EntLibContrib.Common.Configuration.Design;

namespace EntLibContrib.Query.Configuration.Design
{
  /// <summary>
	/// Represents a <see cref="ParameterData"/> configuration element.
  /// </summary>
  [Image(typeof(ParameterNode))]
  [SelectedImage(typeof(ParameterNode))]
  public abstract class ParameterNode : NameSortConfigurationNode
	{
		#region Properties
		/// <summary>
		/// Gets the <see cref="ParameterData"/> this node represents.
		/// </summary>
		/// <value>
		/// The <see cref="ParameterData"/> this node represents.
		/// </value>
		[Browsable(false)]
		public abstract ParameterData ParameterData
		{
			get;
		}
		#endregion

		#region Construction
		/// <summary>
		/// Initialize a new instance of the <see cref="ParameterNode"/> class.
		/// </summary>
		protected ParameterNode()
    {
		}
		#endregion

		#region Public Methods
		/// <summary>
		/// Clones this instance.
		/// </summary>
		/// <returns></returns>
		public abstract ParameterNode Clone();
		#endregion
	}
}